package cn.yi.medicalsys.pojo;

import java.util.Date;

/**
 * 用户 实体类
 * 
 */
public class User {
	private Integer uId; // 用户编号
	private String uName;// 真实用户姓名
	private String userName;// 用户别名
	private String userSex; // 用户性别
	private Integer userAge;// 用户年龄
	private String userPhone;// 联系方式
	private String userAddress;// 居住地址
	private String userCodeId;// 身份证号
	private Date regDate;// 注册时间
	private Integer userState;// 用户类型（0表示管理员1表示普通用户2表示医院）
	private String userPass;// 密码
	private String userEmail;// 邮箱地址

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public String getuName() {
		return uName;
	}

	public void setuName(String uName) {
		this.uName = uName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSex() {
		return userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public Integer getUserAge() {
		return userAge;
	}

	public void setUserAge(Integer userAge) {
		this.userAge = userAge;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserCodeId() {
		return userCodeId;
	}

	public void setUserCodeId(String userCodeId) {
		this.userCodeId = userCodeId;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public Integer getUserState() {
		return userState;
	}

	public void setUserState(Integer userState) {
		this.userState = userState;
	}

	public String getUserPass() {
		return userPass;
	}

	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public User(Integer uId, String uName, String userName, String userSex,
			Integer userAge, String userPhone, String userAddress,
			String userCodeId, Date regDate, Integer userState,
			String userPass, String userEmail) {
		super();
		this.uId = uId;
		this.uName = uName;
		this.userName = userName;
		this.userSex = userSex;
		this.userAge = userAge;
		this.userPhone = userPhone;
		this.userAddress = userAddress;
		this.userCodeId = userCodeId;
		this.regDate = regDate;
		this.userState = userState;
		this.userPass = userPass;
		this.userEmail = userEmail;
	}

	public User() {
		super();
	}

	/**
	 * 用于个人中心修改用户信息 最多可以修改下面几项： 昵称 密码 邮箱 居住地址 联系方式 用户年龄 性别 uId：用于判断修改那个商户
	 * 不修改的信息还用以前的信息传参
	 */

	public User(Integer uId, String userName, String userPass,
			String userEmail, String userAddress, String userPhone,
			Integer userAge, String userSex) {
		super();
		this.uId = uId;
		this.userName = userName;
		this.userSex = userSex;
		this.userAge = userAge;
		this.userPhone = userPhone;
		this.userAddress = userAddress;
		this.userPass = userPass;
		this.userEmail = userEmail;
	}

	public User(String uName, String userSex, String userEmail) {
		super();
		this.uName = uName;
		this.userSex = userSex;
		this.userEmail = userEmail;
	}
	
}
